package com.tiancheng.trade.payment.vo.api;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 退款失败后，重新发起退款
 */
@Getter
@Setter
@ToString
public class ReSubmitRefundVo {
    /** 用户ID */
    @NotEmpty
    private String uid;
    /** 退款单号（交易系统的退款流水号） */
    @NotEmpty
    private String refundFlowId;

    /** 优惠总金额 */
    private Integer discount;

    /** 子订单信息 */
    @Valid
    @NotEmpty
    private List<RefundSubOrderVO> subOrders;
}